<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My Story - Rocky's personal website</title>
    <link rel="stylesheet" href="../style/main.css">
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="../style/story.css">
    <link rel="shortcut icon" href="../icons/hoshi.svg" type="image/x-icon">
</head>

<body>
    <div id="rocky_nav"></div>
    <div class="nav_gap"></div>
    <div class="rw_frame tt">
        <div class="title">
            <h1 class="_in_up"><img src="../icons/hoshi.svg" alt="" class="hoshi r_hoshi">
                <p>My Story</p><img src="../icons/hoshi.svg" alt="" class="hoshi r_hoshi">
            </h1>
            <p class="_in_down">Would you like to know my story in the Yah-Den Mainland?</p>
        </div>
        <img src="../stub.svg" class="rocky_welcome" alt="" id="banner">
    </div>
    <div class="r_content">
        <div id="StoryList"></div>
        <div class="comingsoon">
            <img src="../index_pic/comingsoon.png" alt="Meow~" class="comingsoon_img">
            <h3>More stories coming soon...</h3>
        </div>
        <div id="footer"></div>
    </div>
    <script>
        function antiPirate() {
            document.addEventListener("contextmenu", function (e) {
                e.preventDefault();
            }, false);
            document.body.onselectstart = () => { return false };
            var tryCount = 0;
            var minimalUserResponseInMiliseconds = 200;
            function check() {
                console.clear();
                before = new Date().getTime();
                debugger;
                after = new Date().getTime();
                if (after - before > minimalUserResponseInMiliseconds) {
                    document.write(" Sorry, in order to prevent the arts being pirated, Developer tools and right clicks are no longer allowed on this site, please understand and cooperate. \n 很抱歉，为了防止盗图行为，本网站不再允许使用开发者工具和右键！请理解并配合。 ")
                    alert(" Sorry, in order to prevent the arts being pirated, Developer tools and right clicks are no longer allowed on this site, please understand and cooperate. \n 很抱歉，为了防止盗图行为，本网站不再允许使用开发者工具和右键！请理解并配合。 ");
                    self.location.replace(
                        window.location.protocol + window.location.href.substring(
                            window.location.protocol.length
                        )
                    );
                } else {
                    before = null;
                    after = null;
                    delete before;
                    delete after;
                }
                setTimeout(check, 100);
            }
            check();

        }
        function disabledEvent(e) {
            if (e.stopPropagation) {
                e.stopPropagation();
            } else if (window.event) {
                window.event.cancelBubble = true;
            }
            alert(" Sorry, in order to prevent the arts being pirated, Developer tools and right clicks are no longer allowed on this site, please understand and cooperate. \n 很抱歉，为了防止盗图行为，本网站不再允许使用开发者工具和右键！请理解并配合。 ");
            e.preventDefault();
            return false;
        }
        setTimeout(function () {
            document.addEventListener("contextmenu", function (e) {
                e.preventDefault();
            }, false);
            document.addEventListener("keydown", function (e) {
                // Ctrl+Shift+I 
                if (e.ctrlKey && e.shiftKey && e.keyCode == 73) {
                    disabledEvent(e);
                }
                // Ctrl+Shift+J 
                if (e.ctrlKey && e.shiftKey && e.keyCode == 74) {
                    disabledEvent(e);
                }
                // Ctrl+S 
                if (e.keyCode == 83 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) {
                    disabledEvent(e);
                }
                // Ctrl + U 
                if (e.ctrlKey && e.keyCode == 85) {
                    disabledEvent(e);
                }
                // F12
                if (event.keyCode == 123) {
                    disabledEvent(e);
                }
            }, false);
        }
            , 0)

        setTimeout(antiPirate, 0);

    </script>
    <script src="navbar/navbar.js"></script>
    <script src="footer/footer.js"></script>
    <script src="../bootstrap/js/bootstrap.js"></script>
    <script src="../js/dynamic_bg.js"></script>
    <script type="module" src="../js/story_list.js"></script>
</body>

</html>